﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Yozeev.Migrations
{
    public partial class Add_warehouse : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "WarePosition",
                schema: "Ticket",
                table: "TicketPrices",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "WarePosition",
                schema: "Ticket",
                table: "TicketDetails",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "WarePosition",
                schema: "Ticket",
                table: "ActivityTempDetails",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "WarePosition",
                schema: "Ticket",
                table: "ActivityDetails",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<long>(
                name: "CompartmentNum",
                schema: "Boat",
                table: "Schedules",
                nullable: false,
                defaultValue: 0L);

            migrationBuilder.AddColumn<long>(
                name: "CompartmentReserveNum",
                schema: "Boat",
                table: "Schedules",
                nullable: false,
                defaultValue: 0L);

            migrationBuilder.AddColumn<long>(
                name: "CompartmentSurplusNum",
                schema: "Boat",
                table: "Schedules",
                nullable: false,
                defaultValue: 0L);

            migrationBuilder.AddColumn<int>(
                name: "ScheduleSaleStatus",
                schema: "Boat",
                table: "Schedules",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<long>(
                name: "StandardNum",
                schema: "Boat",
                table: "Schedules",
                nullable: false,
                defaultValue: 0L);

            migrationBuilder.AddColumn<long>(
                name: "StandardReserveNum",
                schema: "Boat",
                table: "Schedules",
                nullable: false,
                defaultValue: 0L);

            migrationBuilder.AddColumn<long>(
                name: "StandardSurplusNum",
                schema: "Boat",
                table: "Schedules",
                nullable: false,
                defaultValue: 0L);

            migrationBuilder.AddColumn<long>(
                name: "VIPNum",
                schema: "Boat",
                table: "Schedules",
                nullable: false,
                defaultValue: 0L);

            migrationBuilder.AddColumn<long>(
                name: "VIPReserveNum",
                schema: "Boat",
                table: "Schedules",
                nullable: false,
                defaultValue: 0L);

            migrationBuilder.AddColumn<long>(
                name: "VIPSurplusNum",
                schema: "Boat",
                table: "Schedules",
                nullable: false,
                defaultValue: 0L);

            migrationBuilder.AddColumn<string>(
                name: "CallName",
                schema: "Boat",
                table: "Boats",
                nullable: true);

            migrationBuilder.AddColumn<long>(
                name: "CompartmentNum",
                schema: "Boat",
                table: "Boats",
                nullable: false,
                defaultValue: 0L);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreateDate",
                schema: "Boat",
                table: "Boats",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "GrossPower",
                schema: "Boat",
                table: "Boats",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "GrossWeight",
                schema: "Boat",
                table: "Boats",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "IMONumber",
                schema: "Boat",
                table: "Boats",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "NetWeight",
                schema: "Boat",
                table: "Boats",
                nullable: true);

            migrationBuilder.AddColumn<long>(
                name: "StandardNum",
                schema: "Boat",
                table: "Boats",
                nullable: false,
                defaultValue: 0L);

            migrationBuilder.AddColumn<long>(
                name: "VIPNum",
                schema: "Boat",
                table: "Boats",
                nullable: false,
                defaultValue: 0L);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "WarePosition",
                schema: "Ticket",
                table: "TicketPrices");

            migrationBuilder.DropColumn(
                name: "WarePosition",
                schema: "Ticket",
                table: "TicketDetails");

            migrationBuilder.DropColumn(
                name: "WarePosition",
                schema: "Ticket",
                table: "ActivityTempDetails");

            migrationBuilder.DropColumn(
                name: "WarePosition",
                schema: "Ticket",
                table: "ActivityDetails");

            migrationBuilder.DropColumn(
                name: "CompartmentNum",
                schema: "Boat",
                table: "Schedules");

            migrationBuilder.DropColumn(
                name: "CompartmentReserveNum",
                schema: "Boat",
                table: "Schedules");

            migrationBuilder.DropColumn(
                name: "CompartmentSurplusNum",
                schema: "Boat",
                table: "Schedules");

            migrationBuilder.DropColumn(
                name: "ScheduleSaleStatus",
                schema: "Boat",
                table: "Schedules");

            migrationBuilder.DropColumn(
                name: "StandardNum",
                schema: "Boat",
                table: "Schedules");

            migrationBuilder.DropColumn(
                name: "StandardReserveNum",
                schema: "Boat",
                table: "Schedules");

            migrationBuilder.DropColumn(
                name: "StandardSurplusNum",
                schema: "Boat",
                table: "Schedules");

            migrationBuilder.DropColumn(
                name: "VIPNum",
                schema: "Boat",
                table: "Schedules");

            migrationBuilder.DropColumn(
                name: "VIPReserveNum",
                schema: "Boat",
                table: "Schedules");

            migrationBuilder.DropColumn(
                name: "VIPSurplusNum",
                schema: "Boat",
                table: "Schedules");

            migrationBuilder.DropColumn(
                name: "CallName",
                schema: "Boat",
                table: "Boats");

            migrationBuilder.DropColumn(
                name: "CompartmentNum",
                schema: "Boat",
                table: "Boats");

            migrationBuilder.DropColumn(
                name: "CreateDate",
                schema: "Boat",
                table: "Boats");

            migrationBuilder.DropColumn(
                name: "GrossPower",
                schema: "Boat",
                table: "Boats");

            migrationBuilder.DropColumn(
                name: "GrossWeight",
                schema: "Boat",
                table: "Boats");

            migrationBuilder.DropColumn(
                name: "IMONumber",
                schema: "Boat",
                table: "Boats");

            migrationBuilder.DropColumn(
                name: "NetWeight",
                schema: "Boat",
                table: "Boats");

            migrationBuilder.DropColumn(
                name: "StandardNum",
                schema: "Boat",
                table: "Boats");

            migrationBuilder.DropColumn(
                name: "VIPNum",
                schema: "Boat",
                table: "Boats");
        }
    }
}
